import time,threading

def loop():
	print("thread name: %s loop begin" % threading.current_thread().name)
	i = 5
	while i > 0:
		i = i - 1
		print("thread %s >> %s" % (threading.current_thread().name,i))
		time.sleep(1)

	print("thread name: %s loop end" % threading.current_thread().name)


print("thread name %s runing ..." % threading.current_thread().name)

t = threading.Thread(target = loop, name = "loop_thread")
t.start()
# t.join()

print("thread name %s end ..." % threading.current_thread().name)